package com.zjz.utils;

import org.junit.Test;

import java.util.UUID;

public class IDUtils {
    public static String getID(){
        return UUID.randomUUID().toString().replaceAll("-","");
    }



    @Test
    public void test(){

        String UUIDS = UUID.randomUUID().toString();
        System.out.println(getID());
        System.out.println(UUIDS);
        System.out.println("getId--length:" + getID().length());
        System.out.println("UUIDS.length:::::"+UUIDS.length());
    }
}
